#include "CDisplayTimeDiscriptor.h"

CDisplayTimeDiscriptor::CDisplayTimeDiscriptor(void):IDescriptorData(DESCRIPTOR_TAG_DISPLAY_TIME)
, m_nTime(0)
, m_nTimes(0) 
{
}

CDisplayTimeDiscriptor::~CDisplayTimeDiscriptor(void)
{
}

void CDisplayTimeDiscriptor::GetData(BYTE* buff  , int &len)
{
	CBuffer stBuffer(buff, DESCRIPTOR_MAXLEN);

	PACK_DESCRIPTOR_BUFFER_START(stBuffer, DESCRIPTOR_TAG_DISPLAY_TIME);

	stBuffer.Write((WORD)m_nTime);
	stBuffer.Write((BYTE)m_nTimes); 
	 
	len = PACK_DESCRIPTOR_BUFFER_END(stBuffer);
}